#!/bin/bash -ex

git clone --depth 1 https://github.com/acama/xrop.git
cd xrop
git submodule update --init --recursive
make -j 1 # Watch out!! -j $(nproc) makes the build fail
cd ..

mkdir -p bin
cd bin
ln -s ../xrop/xrop . 
cd ..
